package com.jrx.anytxn.param.job.cutover.step;

import com.jrx.anytxn.param.constant.Constant;
import com.jrx.anytxn.param.entity.PrOrganizationTable;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.batch.item.ItemProcessor;
import org.springframework.stereotype.Service;

/**
 * 日切结束处理
 *
 * @author : zhenghaopu
 * 2019/11/18
 */
@Service
public class CutoverEndProcessor  implements ItemProcessor<PrOrganizationTable, PrOrganizationTable> {

    private static final Logger logger = LoggerFactory.getLogger(CutoverEndProcessor.class);

    @Override
    public PrOrganizationTable process(PrOrganizationTable item) {
        logger.info("执行日切操作业务处理");
        item.setBatchInProgressFlag(Constant.ORG_BATCH_FLAG_0);
        return item;
    }
}
